/*
 * @Date: 2022-04-13 16:01:33
 * @LastEditors: wuyuxin
 * @LastEditTime: 2022-05-06 15:07:11
 * @FilePath: \Vue3-ts-cms\src\service\request\config.ts
 * @description: 文件描述
 */
// 根据process.env.NODE_ENV区分
// 开发环境: development
// 生成环境: production
// 测试环境: test

let BASE_URL = ''
const TIME_OUT = 10000

if (process.env.NODE_ENV === 'development') {
  BASE_URL = '/api'
} else if (process.env.NODE_ENV === 'production') {
  BASE_URL = '/api'
} else {
  BASE_URL = 'http://coderwhy.org/test'
}

export { BASE_URL, TIME_OUT }
